/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.rational.parser.type.wraps;

import org.rational.parser.type.Type;

/**
 *
 * @author Overmind
 */
public abstract class TrimType<T>
    extends Type<T>
{
    protected TrimType(String name)
    {
	super(name);
    }
    
    @Override
    public final T valueOfString(String string) throws NumberFormatException
    {
	return valueOfTrimString(string.trim());
    }
    
    public abstract T valueOfTrimString(String string) throws NumberFormatException;
}
